import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

// ser.timezone
public class TimeZoneDemo {

    /**
     * @param args
     * @throws ParseException 
     */
    public static void main(String[] args) throws ParseException {
        
    	
        SimpleDateFormat formater = new SimpleDateFormat("yyyy-MM-dd HH");
        formater.setTimeZone(TimeZone.getTimeZone("AST"));
        
        Date winter = formater.parse("2010-01-01 05");
        Date spring = formater.parse("2010-04-04 11");
        
        System.out.println(winter);
        
        long milisecondsInAHour = 1000 * 60 * 60;
        System.out.println(TimeZone.getDefault().getDisplayName(new Locale("bg")));
        
        System.out.println(TimeZone.getDefault().getOffset(winter.getTime()) / milisecondsInAHour);
        System.out.println(TimeZone.getDefault().getOffset(spring.getTime()) / milisecondsInAHour);
    }

}
